{template('../public/header.html')}

    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form" style="margin-top:10px">
        <tbody>
            <tr>
            <td>
            <div class="explain_col">
            	<input type="hidden" name="m" value="admin" />
                <input type="hidden" name="c" value="page" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
				所属模型：
                <select name="module_id">
					<option value="">--请选择模型--</option>
					{$module_list type='rs'}
						<option value="{$module_list("id")}" {if module_id=CLng(module_list("id"))} style="background:#92C2D9"  selected="selected" {/if}>{$module_list("title")}</option>
					{/$module_list}
                </select>&nbsp;
                <input type="submit" name="search" class="btn" value="检索" />
        	</div>
            </td>
            </tr>
        </tbody>
    </table>
    </form>

<!--栏目列表-->
<div class="pad_10">
    <div class="J_tablelist table_list">
    <table width="100%" cellspacing="0" id="J_cate_tree">
        <thead>
            <tr>
                <th width="40">ID</th>
                <th align="left">{:L('page_name')}</th>
                <th align='left'>所属模型</td>
                <th>{:L('page_last_time')}</td>
                <th width="100">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
		{foreach e cat}
			<tr id='node-{:cat(e)("id")}' {if cat(e)("pid")>0}class="child-of-node-{:cat(e)("pid")}"{else} {/if}>
                <td align='center'>{:cat(e)("id")}</td>
                <td>{:cat(e)("tree_spacer")}{:cat(e)("name")}</td>
                <td align='left'>{if cat(e)("module_id")<>0}{:moduleName(cat(e)("module_id"))}{/if}</td>
                <td align='center'>{if not ab.c.isnul(cat(e)("last_time"))}{:stdTime(cat(e)("last_time"))}{else}-{/if}</td>
                <td align='center'>
					{if not M("class")().Where("pid="& cat(e)("id")).Count>0}
					<a href="{:U("page/edit?classid="& cat(e)("id"))}">{:L('edit')}</a>
					{/if}
				</td>
            </tr>
		{/foreach}
        </tbody>
    </table>
    </div>
</div>
{template('../public/footer.html')}
<script src="__STATIC__/js/jquery/plugins/jquery.treetable.js"></script>
<script>
$(function(){
    $("#J_cate_tree").treeTable({indent:20, treeColumn:1, clickableNodeNames:true, initialState:'expanded'});
});
</script>
</body>
</html>